import  '../css/index.css';
import '../css/common.less';

import pic from '../img/pic.png'

function createNode(){
    var div=document.createElement('div');
    div.innerHTML = ['hello','world'].join(' ');
    div.className = "content";
   


    var img = new Image();
   // let pic =require('../img/pic.png').default;
    console.log('文件地址是:',pic)

    img.src = pic;

    div.appendChild(img);

    return div;


}

document.body.appendChild(createNode());

